package com.zxl.common.model.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author zxw
 * @since 2023-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_order_logistics")
public class SysOrderLogistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单编号")
    @NotBlank(message = "订单编号不为空")
    private String orderCode;

    @ApiModelProperty("物流单号")
    @NotBlank(message = "物流单号不为空")
    private String logisticsCode;

    @ApiModelProperty("物流公司名称")
    @NotBlank(message = "物流公司名称不为空")
    private String logisticsCompanyName;

    @ApiModelProperty("物流公司编码")
    private String logisticsCompanyCode;

    @ApiModelProperty("发货时间")
    private Date deliveryTime;

    @ApiModelProperty("创建时间")
    private Date createTime;


}
